package com.yixin.hospital.entity.dto.req.jobtitle;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel("编辑职称请求体")
@Data
public class JobTitleEditReqDTO {

    @ApiModelProperty("职称id")
    @NotNull(message = "职称id不能为空")
    private Long id;

    @ApiModelProperty("职称名称")
    @NotBlank(message = "职称名称不能为空")
    private String name;
}
